//
//  BDPostCommentCell.h
//  BadBoy
//
//  Created by wen on 2017/9/10.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import "BDBaseTableViewCell.h"
#import "BDPostCommentLayout.h"

@class BDPostCommentCell;
@protocol BDPostCommentCellDelegate;

@interface BDPostCommentProfileView : UIView
@property (nonatomic, strong) UIImageView *avatarView; ///< 头像
@property (nonatomic, strong) UIImageView *avatarBadgeView; ///< 徽章
@property (nonatomic, strong) YYLabel *nameLabel;
@property (nonatomic, strong) YYLabel *sourceLabel;
@property (nonatomic, strong) UIImageView *backgroundImageView;
//@property (nonatomic, strong) UIButton *arrowButton;
//@property (nonatomic, strong) UIButton *followButton;
@property (nonatomic, weak) BDPostCommentCell *cell;
@end

@interface BDPostCommentCell : BDBaseTableViewCell<UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) BDPostCommentProfileView *profileView;
@property (nonatomic, strong) YYLabel *commentLabel;
@property (nonatomic, strong) UITableView *replyTableView;
@property (nonatomic, weak) id<BDPostCommentCellDelegate> delegate;
@property (nonatomic, strong) BDPostCommentLayout *layout;

@end

@protocol BDPostCommentCellDelegate <NSObject>
/// 点击了用户
- (void)cell:(BDPostCommentCell *)cell didClickUser:(BDUserModel *)user;
/// 点击了 Label 的链接
- (void)cell:(BDPostCommentCell *)cell didClickInLabel:(YYLabel *)label textRange:(NSRange)textRange;

@end
